//
//  SSProgressHUD.m
//  QuickCure01
//
//  Created by Esther on 2016/12/22.
//  Copyright © 2016年 itcast. All rights reserved.
//

#import "SSProgressHUD.h"
#import <SVProgressHUD.h>

@implementation SSProgressHUD

//+ (instancetype)shareProgressHUD{
//    return [SVProgressHUD show];
//}
+ (void)ss_show{
    [SVProgressHUD show];
}
+ (void)ss_progressHUDWithSuccessWithStatus:(NSString *)status backgroundLayerColor:(UIColor *)color {
    [SVProgressHUD show];
    
    [SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeCustom];
    [SVProgressHUD showSuccessWithStatus:status];
    [SVProgressHUD setBackgroundLayerColor:color];
}

+ (void)ss_progressHUDWithErrorWithStatus:(NSString *)status backgroundLayerColor:(UIColor *)color {
    [SVProgressHUD show];
    
    [SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeCustom];
//    [SVProgressHUD showSuccessWithStatus:status];
    [SVProgressHUD showErrorWithStatus:status];
    
    [SVProgressHUD setBackgroundLayerColor:color];
}


+ (void)ss_progressHUDWithBackgroundLayerColor:(UIColor *)color{
    [SVProgressHUD show];
    
    [SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeCustom];
    
    [SVProgressHUD setBackgroundLayerColor:color];
}



+ (void)ss_dismiss {
    [SVProgressHUD dismiss];
}
@end
